package com.py.purchase.service.impl;

import com.py.purchase.mapper.ProductInfoResultMapper;
import com.py.purchase.service.ProductInfoResultService;
import com.py.purchase.vo.Message;
import com.py.purchase.vo.ProductInfoResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductInfoResultServiceImpl implements ProductInfoResultService {

    @Resource
    private ProductInfoResultMapper productInfoResultMapper;

    @Override
    public List<ProductInfoResult> selcteProductInfoResult(String phCode) {
        return productInfoResultMapper.selcteProductInfoResult(phCode);
    }

    @Override
    public Message selectMessage(String content) {
        return productInfoResultMapper.selectMessage(content);
    }

    @Override
    public int udpateState(int id) {
        return productInfoResultMapper.udpateState(id);
    }
}
